body {
	position: relative;
}
.my-popup {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	z-index: 1000;
	width: 100%;
	height: 100%;
	min-height: 100%;
	font-size: 0;
	text-align: center;
	transition: all 200ms;
}
.my-popup.nofixed {
	position: absolute;
}
.my-popup.show-opacity {
	opacity: 1;
}
.my-popup.close-opacity {
	opacity: 0;
}
.my-popup.show-top {
	transform: translateY(0);
	opacity: 1;
}
.my-popup.close-top {
	transform: translateY(-100%);
	opacity: 0;
}
.my-popup.show-right {
	transform: translateX(0);
	opacity: 1;
}
.my-popup.close-right {
	transform: translateX(100%);
	opacity: 0;
}
.my-popup.show-bottom {
	transform: translateY(0);
	opacity: 1;
}
.my-popup.close-bottom {
	transform: translateY(100%);
	opacity: 0;
}
.my-popup.show-left {
	transform: translateX(0);
	opacity: 1;
}
.my-popup.close-left {
	transform: translateX(-100%);
	opacity: 0;
}

.my-popup::after {
	content: '';
	width: 0;
	height: 100%;
	display: inline-block;
	vertical-align: middle;
}


/*背景*/
.my-popup .my-popup-bg {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 50;
	width: 100%;
	height: 100%;
	background: rgb(25, 25, 25);
	filter: alpha(opacity=00);
	opacity: 0.2;
}

/*内容*/
.my-popup .popup-content {
	position: relative;
	z-index: 100;
	display: inline-block;
	vertical-align: middle;
	padding: 10px;
	background: #fff;
	border: 1px solid #999;
	font-size: 14px;
}